package com.ph.seata.order.service;


import com.ph.seata.order.dto.OrderDTO;
import com.ph.web.common.response.WrapperResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "ph-simple-order", path = "/")
public interface OrderFeignService {

    @RequestMapping(value = "/api/order/create_order", method = RequestMethod.POST)
    WrapperResponse<OrderDTO> createOrder(OrderDTO orderDTO);
}
